require 'active_record'
class RemoteFile < ActiveRecord::Base
  belongs_to :remote_agent
  has_and_belongs_to_many :tags
  #TODO seems like our remote agent needs access to its agent interface so we can make this just the content= method and wont have to pass that agent interface in.
  def update_content (agent, new_content)
    content = new_content
    agent.update_file(path, content)
  end
end
